public class ZhaiZhiJie01 {
    public static void main(String[] args) {
        int i = 0;
        int j = 0;
        try{
            String str1 = args[0];
            String str2 = args[1];
            i = Integer.parseInt(str1);
            j = Integer.parseInt(str2);
            int temp = i/j;
            System.out.println("两数相除的结果为：" + temp);
        }catch(ArithmeticException e){
            System.out.println("算术异常：" + e);
        }catch(NumberFormatException e){
            System.out.println("数字转换异常" + e);
        }catch(ArrayIndexOutOfBoundsException e){
            System.out.println("数组越界异常：" + e);
        }catch(Exception e){
            System.out.println("其他异常：" + e);
        }finally{
            System.out.println("不管是否异常，都会执行此代码");
        }
        System.out.println("***计算结束***");
    }
}
